package l2

import "zstackgo/pkg/header/message"

/**
 * @api attach l2Network to cluster
 * @category l2network
 * @cli
 * @httpMsg {
 * "org.zstack.header.network.l2.APIAttachL2NetworkToClusterMsg": {
 * "l2NetworkUuid": "a766f7dec6e5477f9842289950b51e63",
 * "clusterUuid": "cb97e076b2e7497d9d4018fb4b4cfcea",
 * "session": {
 * "uuid": "d93f354c4339450e8c2a4c31de89da15"
 * }
 * }
 * }
 * @msg {
 * "org.zstack.header.network.l2.APIAttachL2NetworkToClusterMsg": {
 * "l2NetworkUuid": "a766f7dec6e5477f9842289950b51e63",
 * "clusterUuid": "cb97e076b2e7497d9d4018fb4b4cfcea",
 * "session": {
 * "uuid": "d93f354c4339450e8c2a4c31de89da15"
 * },
 * "timeout": 1800000,
 * "id": "88c2cf5b89ed4c528091d1c69872f83e",
 * "serviceId": "api.portal"
 * }
 * }
 * @result see :ref:`APIAttachL2NetworkToClusterEvent`
 * @since 0.1.0
 */
// @RestRequest(
//         path = "/l2-networks/{l2NetworkUuid}/clusters/{clusterUuid}",
//         method = HttpMethod.POST,
//         responseClass = APIAttachL2NetworkToClusterEvent.class,
//         parameterName = "null"
// )
type APIAttachL2NetworkToClusterMsg struct {
	*message.APIMessageImpl

	L2NetworkUuid string // @APIParam(resourceType = L2NetworkVO.class, checkAccount = true, operationTarget = true)
	ClusterUuid   string
}

func (amsg *APIAttachL2NetworkToClusterMsg) GetL2NetworkUuid() string {
	return amsg.L2NetworkUuid
}
